# #coding=utf-8
# from selenium import webdriver
# from selenium.webdriver.chrome.options import Options

# chrome_options = Options()
# chrome_options.add_argument("--no-sandbox")
# chrome_options.add_argument("--disable-setuid-sandbox")
# chrome_options.add_argument('disable-infobars')
# driver = webdriver.Chrome("C:\soft\chromedriver.exe")
#
# driver.get('http://www.ifeng.com')

#coding:utf-8

import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys

browser = webdriver.Chrome("C:\soft\chromedriver.exe")
browser.get('http://www.baidu.com')
# assert "百度" in browser.title
elem = browser.find_element_by_id("kw")
elem.send_keys("good")
# elem.send_keys("今日热点")
elem.send_keys(Keys.RETURN)

time.sleep(20)
browser.close()
